current_path = $(shell pwd)
kernel_path  = /home/wlz/app/linux/ATOMPI-CA1_SDK_v1.1/kernel/
cc = /home/wlz/app/gcc/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

obj-m += timerApp.o

all: modules

modules:
	$(MAKE) -C $(kernel_path) M=$(current_path) modules ARCH=arm64 CROSS_COMPILE=$(cc)
clean:
	$(MAKE) -C $(kernel_path) M=$(current_path) clean
